package com.lfp.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * @Description TODO
 * @Author lfp
 * @Date 2021/6/10 16:16
 * @Version 1.0
 */
@Api(tags = "knife4j测试接口")
@RestController
@RequestMapping("knife4j")
public class Knife4jTestController {

    @ApiOperation(value = "knife4j测试接口",notes = "knife4j测试接口")
    @GetMapping("hello")
    public String hello(){
        return  "hello";
    }

    @ApiOperation(value = "post测试接口",notes = "post测试接口")
    @PostMapping("post/test")
    public String post(){
        return  "post";
    }

    @ApiOperation(value = "delete测试接口",notes = "delete测试接口")
    @DeleteMapping("delete/test")
    public String delete(){
        return  "delete";
    }
}
